//package com.zmn.plat.dubbo.impl.product;
//
//import javax.annotation.Resource;
//
//import org.apache.dubbo.config.annotation.Service;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.common.dto.product.ServSubsidiaryGroupDIO;
//import com.zmn.plat.common.dto.product.ServSubsidiaryGroupDRO;
//import com.zmn.plat.dubbo.interfaces.product.ServSubsidiaryGroupModifyRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.model.entity.product.ServSubsidiaryGroup;
//import com.zmn.plat.services.interfaces.product.ServSubsidiaryGroupService;
//import com.zmn.plat.utils.bean.BeanCopyUtils;
//
//import lombok.extern.slf4j.Slf4j;
//
///**
// * @author tanghongjun
// * @version v1.0 @类说明：
// * @since 2018/10/16 11:30
// */
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//@Slf4j
//public class ServSubsidiaryGroupModifyRemoteServiceImpl implements ServSubsidiaryGroupModifyRemoteService {
//
//    private Logger logger = LoggerFactory.getLogger(ServSubsidiaryGroupModifyRemoteServiceImpl.class);
//
//    private static final String TAG = "故障服务分组 dubbo 接口";
//
//    @Resource
//    private ServSubsidiaryGroupService servSubsidiaryGroupService;
//
//    @Override
//    public ResponseDTO<ServSubsidiaryGroupDRO> add(ServSubsidiaryGroupDIO servSubsidiaryGroupDIO) {
//        log.info("add param is:servSubsidiaryGroupDIO={}", servSubsidiaryGroupDIO);
//
//        ServSubsidiaryGroup servSubsidiaryGroup = new ServSubsidiaryGroup();
//        BeanCopyUtils.copyProperties(servSubsidiaryGroupDIO, servSubsidiaryGroup);
//        servSubsidiaryGroupService.insert(servSubsidiaryGroup);
//
//        return this.returnDRO(servSubsidiaryGroup);
//    }
//
//    @Override
//    public ResponseDTO<ServSubsidiaryGroupDRO> modifyByKey(ServSubsidiaryGroupDIO servSubsidiaryGroupDIO) {
//        log.info("modifyByKey param is:servSubsidiaryGroupDIO={}", servSubsidiaryGroupDIO);
//
//        ServSubsidiaryGroup servSubsidiaryGroup = new ServSubsidiaryGroup();
//        BeanCopyUtils.copyProperties(servSubsidiaryGroupDIO, servSubsidiaryGroup);
//        servSubsidiaryGroupService.updateByKey(servSubsidiaryGroup);
//
//        return this.returnDRO(servSubsidiaryGroup);
//    }
//
//    private ResponseDTO<ServSubsidiaryGroupDRO> returnDRO(ServSubsidiaryGroup servSubsidiaryGroup) {
//        ServSubsidiaryGroupDRO servSubsidiaryGroupDRO = new ServSubsidiaryGroupDRO();
//        BeanCopyUtils.copyProperties(servSubsidiaryGroup, servSubsidiaryGroupDRO);
//
//        return ResponseDTO.success(servSubsidiaryGroupDRO, "OK");
//    }
//}
